package com.genius.reservation.platform.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.genius.reservation.mapper.PlatformInformationMapper;
import com.genius.reservation.platform.entity.PlatformInformation;
import com.genius.reservation.receiver.entity.ReceiverInformation;

import java.util.List;

public interface IPlatformService extends IService<PlatformInformation>  {
    default LambdaQueryWrapper<PlatformInformation> getWrapper(){
        return new LambdaQueryWrapper();
    }
    List<PlatformInformation> findFreePlatform();

    PlatformInformation findPlatformById(String platformNumber);

    default PlatformInformation addAndUp(PlatformInformation platform){
        this.saveOrUpdate(platform);
        return platform;
    }
}
